<template>
  <div>
    <div @click="goTo()"><img :src="pagePicArr[0]" alt=""></div>
  </div>
</template>
<script>
  import { backTop } from 'assets/js/sdjjPublic.js'
  import HeaderBar from '@/views/shandjj/components/HeaderBar.vue'
  import BaseUrl from '@/utils/ajaxRequest.js'
  import { resetAddress } from '@/utils/utils.js'
  export default {
    components:{HeaderBar},
    data() {
      return {
        pagePicArr:[],//页面图片资源
      }
    },
    created(){
      this.formatImgLink();
    },
    methods:{
      //跳转主会场
      goTo(){
        jump2url(`${window.location.origin}/TaoAction/index`);
      },
      //处理静态资源地址
      formatImgLink(){
        var tempLink=resetAddress();
        if(tempLink.type=='devLine'){
          this.setLinkString=`${tempLink.assetsLink}/default/ActiveImg/celebration/img/`;
        }else if(tempLink.type=='testLine'){
          this.setLinkString=`${tempLink.assetsLink}/default/ActiveImg/celebration/img/`;
        }else if(tempLink.type=='onLine'){
          this.setLinkString=`${tempLink.assetsLink}/default/ActiveImg/celebration/img/`;
        };
        this.pagePicArr=[
          this.setLinkString+"special-img.jpg",
        ]
      },
    }
  }
</script>
<style >

</style>